package cn.itcalvin.sncoal.cth.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;

/**
 * 配置需要评分的系统
 */
@ApiModel(description="配置需要评分的系统")
@Data
@Table(name = "config_system")
public class ConfigSystem {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    @ApiModelProperty(value="主键")
    @NotNull(message = "主键不能为null")
    private Long id;

    @Column(name = "systemName")
    @ApiModelProperty(value="")
    @Size(max = 255,message = "最大长度要小于 255")
    @NotBlank(message = "不能为空")
    private String systemName;

    /**
     * 备注信息
     */
    @Column(name = "remark")
    @ApiModelProperty(value="备注信息")
    private String remark;

    /**
     * 权重值
     */
    @Column(name = "weight")
    @ApiModelProperty(value="权重值")
    @NotNull(message = "权重值不能为null")
    private BigDecimal weight;

    /**
     * 系统总分
     */
    @Column(name = "totalScore")
    @ApiModelProperty(value="系统总分")
    @NotNull(message = "系统总分不能为null")
    private BigDecimal totalScore;

    /**
     * 是否删除
     */
    @Column(name = "isDelete")
    @ApiModelProperty(value="是否删除")
    @NotNull(message = "是否删除不能为null")
    private Boolean isDelete;
}